package a06oopextendsDemo;

public class Text {
    public static void main(String[] args) {

        Manager m =new Manager("zhangsan","007",10000,8000);
        System.out.println(m.getId()+", "+m.getName()+", "
                +m.getSalary()+", "+m.getBonus());
        m.work();

        cook c =new cook();
        c.setId("009");
        c.setName("lisi");
        c.setSalary(5000);
        System.out.println(c.getId()+", "+c.getName()+", "
                +c.getSalary());
        c.work();
    }
}
